<?php
require_once __DAO__ ;

class daoUhet extends Dao
{	
	public function __construct(){
		
		parent::__construct();			
	} 

	public function listar(){
		
		$sql = 'SELECT id,titulo,entrevistado,data FROM materia Order By id DESC';
		$result = $this->db->query($sql);
		$materias = array();
		
		while($linha = mysql_fetch_assoc($result)){
		
			$linha['data'] = converterData($linha['data']);
			$materias[] = $linha;
		
		}
		$this->db->desconectar();
		return $materias;
	}
}
?>